package com.cloudfun.campusshare.common.model.vo;

import com.cloudfun.campusshare.common.constant.AnnouncementType;
import com.cloudfun.campusshare.entity.CreatorPersistenceEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @author : zhangyongjie
 * @version : 1.0
 * @createTime : 2020/6/5 9:48
 * @description :
 */
@Data
public class AnnouncementAddVO {

    private String id;

    @NotNull(message = "洗衣点类型不能为空")
    private AnnouncementType type;

    private String washPointId;

    @NotBlank(message = "标题不能为空")
    private String title;

    @NotBlank(message = "开始时间不能为空")
    private String beginTime;

    @NotBlank(message = "结束时间不能为空")
    private String endTime;

    @NotBlank(message = "内容不能为空")
    private String content;

    private Boolean isUsing = true;

}
